package com.fivetalks.domain;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnore;

@Entity
@Table( name = "Member" )
public class Member{

	public final static String PREFIX_NUMBER_USERID = "1";
	
	public Member(){

	}
	public Member(long id) {
		this.id = id;
	}
	/**
	 *  기본정보
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;

	@Column( name="email", unique=true )
	private String email;
	
	@Column( name="nickname", length=50 )
	private String nickname;
	
	@Column( name="password", length=64 )
	@JsonIgnore
	private String password;
	
	@Column( name="age" )
	private int age;
	
	@Column( name="gender" )
	private String gender;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}
	
	


}